schemas.tsx 705 B

123456789101112131415161718192021222324
  1. import { ReactFlowProvider } from '@xyflow/react'
  2. import { SchemaGraph } from '@/components/interfaces/Database/Schemas/SchemaGraph'
  3. import DatabaseLayout from '@/components/layouts/DatabaseLayout/DatabaseLayout'
  4. import DefaultLayout from '@/components/layouts/DefaultLayout'
  5. import type { NextPageWithLayout } from '@/types'
  6. const SchemasPage: NextPageWithLayout = () => {
  7. return (
  8. <div className="flex w-full h-full flex-col">
  9. <ReactFlowProvider>
  10. <SchemaGraph />
  11. </ReactFlowProvider>
  12. </div>
  13. )
  14. }
  15. SchemasPage.getLayout = (page) => (
  16. <DefaultLayout>
  17. <DatabaseLayout title="Schema Visualizer">{page}</DatabaseLayout>
  18. </DefaultLayout>
  19. )
  20. export default SchemasPage